import { Button } from "antd";
import {
    useNavigate,
  } from "react-router-dom";

export default function Detail(){
    let navigate = useNavigate();

    return(<>
        <Button
        onClick={() => {
            navigate("/shop");
        }}
        >
            跳转到shop
        </Button>
        <Button
        onClick={() => {
            navigate("/");
        }}
        >
            跳转到首页
        </Button>
    </>)
  }